package com.wps.wdztv6.utils;

import cn.hutool.core.util.StrUtil;
import org.junit.jupiter.api.Test;

//@SpringBootTest
public class WPSUtiltest {


    @Test
    void testWPS() {
        System.out.println(WPS4Util.getFileType("张齐.docx"));
    }


    @Test
    void testWPS2() {
        System.out.println(System.nanoTime());

        System.out.println(WPS4Util.getOrderedSequence());
        System.out.println(WPS4Util.getOrderedSequence());
        System.out.println(WPS4Util.getOrderedSequence());
        System.out.println(WPS4Util.getOrderedSequence());
        System.out.println(WPS4Util.getOrderedSequence().length());


        String filename=  "哈哈哈.doc";
        int i = filename.lastIndexOf(".");
        System.out.println(i);
        String substring = filename.substring(filename.lastIndexOf("."));
        System.out.println(substring);

        String s = StrUtil.subSuf(substring, 1);
        System.out.println(s);

    }
}
